<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<form action="/student/save" method="post">

姓名：<input	type="text" name="name"  value='${stu.name != null ? stu.name : "" }'  required/><br/>
年龄：<input	type="number" name="age" value='${stu.age != null ? stu.age : "" }' required/><br/>
<input	type="hidden" name="id" value='${stu.id}'/><br/>
<input	type="submit" value='${stu != null ? "编辑学生信息" : "保存学生信息" }'/>

</form>

</body>
</html>